package cn.ava.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
public class CourseOrderDto {
   // 普通课程订单
   private List<Long> courseIds;

   @NotNull(message = "支付方式错误!")
   private Integer payType;

   @NotEmpty(message = "订单重复或不存在!")
   private String token;

   // ???
   private Integer type;

   // 秒杀订单
   private String orderNo;

}
